{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "7319945f-7153-4898-a208-8a9720b37161", "metadata": { "nbsphinx": "hidden", "tags": [] }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "env: SOCCERDATA_LOGLEVEL=ERROR\n", "env: SOCCERDATA_NOCACHE=True\n", "env: SOCCERDATA_NOSTORE=True\n" ] } ], "source": [ "%env SOCCERDATA_LOGLEVEL=ERROR\n", "%env SOCCERDATA_NOCACHE=True\n", "%env SOCCERDATA_NOSTORE=True" ] }, { "cell_type": "code", "execution_count": 2, "id": "4f59fc7d-9922-4e41-8d23-d13ffb6ef9f5", "metadata": { "tags": [] }, "outputs": [], "source": [ "import soccerdata as sd" ] }, { "cell_type": "code", "execution_count": 3, "id": "e07ce7cd", "metadata": { "tags": [] }, "outputs": [], "source": [ "%matplotlib inline\n", "%config InlineBackend.figure_format = 'retina'\n", "\n", "import matplotlib.pyplot as plt\n", "import pandas as pd\n", "import seaborn as sns\n", "\n", "sns.set_context(\"notebook\")\n", "sns.set_style(\"whitegrid\")" ] }, { "cell_type": "markdown", "id": "b5784f2d", "metadata": {}, "source": [ "# Evolution of top team's Elo ratings\n", "\n", "How did the current top 5 teams in the world develop over time?" ] }, { "cell_type": "code", "execution_count": 4, "id": "745be31a", "metadata": { "tags": [] }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/cw/dtaijupiter/NoCsBack/dtai/pieterr/Projects/soccerdata/soccerdata/clubelo.py:18: FutureWarning: The argument 'infer_datetime_format' is deprecated and will be removed in a future version. A strict version of it is now the default, see https://pandas.pydata.org/pdeps/0004-consistent-to-datetime-parsing.html. You can safely remove this argument.\n", " return pd.read_csv(\n" ] }, { "data": { "text/html": [ "
| \n", " | rank | \n", "country | \n", "level | \n", "elo | \n", "from | \n", "to | \n", "league | \n", "
|---|---|---|---|---|---|---|---|
| team | \n", "\n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " |
| Man City | \n", "1.0 | \n", "ENG | \n", "1 | \n", "2079.984619 | \n", "2023-06-11 | \n", "2023-08-11 | \n", "ENG-Premier League | \n", "
| Liverpool | \n", "2.0 | \n", "ENG | \n", "1 | \n", "1949.932861 | \n", "2023-06-11 | \n", "2023-08-13 | \n", "ENG-Premier League | \n", "
| Bayern | \n", "3.0 | \n", "GER | \n", "1 | \n", "1937.012451 | \n", "2023-05-28 | \n", "2023-08-18 | \n", "GER-Bundesliga | \n", "
| Arsenal | \n", "4.0 | \n", "ENG | \n", "1 | \n", "1928.216187 | \n", "2023-06-11 | \n", "2023-08-12 | \n", "ENG-Premier League | \n", "
| Real Madrid | \n", "5.0 | \n", "ESP | \n", "1 | \n", "1907.589233 | \n", "2023-06-08 | \n", "2023-08-12 | \n", "ESP-La Liga | \n", "